public class hk5Q1try2 {
    public static void main(String[] arg) 
    {
        int k;
        int count = 1;
        for (int i = 2; i <= 1000; i++) 
        {
            boolean f = false;
            for (int j = 2; j < i; j++) 
            {
                k = i % j;
                if (k == 0) 
                {
                    f = true;
                    break;
                }
            }
            if (!f) 
            {
                System.out.println("count = " + count + " i = " + i);
                count++;
            }
            if (count > 100) 
            {
                break;
            }
        }
    }
}
